<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
    <link rel="stylesheet" href="./css/public.css" />
    <link rel="stylesheet" href="./fonts/iconfont.css" />
    <link rel="stylesheet" href="./css/index.css" />
    <style>
      .modalBox-price {
        display: none;
        box-sizing: border-box;
        position: absolute;
        top: 0;
        left: 0;
        background-color: white;
        /* padding: 0.3rem 0.31rem 0 0.31rem; */
        width: 100%;
      }

      .modalBox-price .search {
        display: flex;
        padding: 0.3rem 0.31rem 0 0.31rem;
      }
      .modalBox-price .search .cityOrientation {
        display: flex;
        align-items: center;
        line-height: 0.36rem;
      }
      .modalBox-price .search .cityOrientation i {
        font-size: 0.12rem;
      }
      .modalBox-price .search .cityOrientation .cityOrientation-word {
        display: inline-block;
        font-size: 0.26rem;
        font-stretch: normal;
        line-height: 0.36rem;
        letter-spacing: 0.03rem;
        color: #333333;
      }
      .rightSearchBox {
        margin-left: auto;
      }
      .rightSearchBox .searchImg {
        vertical-align: middle;
        display: inline-block;
        height: 0.69rem;
        width: 0.84rem;
        text-align: center;
        line-height: 0.69rem;

        /* vertical-align: middle; */
      }
      .rightSearchBox .searchImg img {
        width: 0.26rem;
        height: 0.26rem;
      }
      .rightSearchBox input {
        box-sizing: border-box;
        margin-left: auto;
        width: 5.08rem;
        height: 0.69rem;
        background-color: #f6f4f4;
        border-radius: 0.15rem;
        border: 0;
      }

      /* .searchImg {
        width: 0.26rem;
        height: 0.26rem;
        position: absolute;
        top: 1.69rem;
        top: 0.52rem;
        left: 1.7rem;
      } */
      .btnBox {
        display: flex;
        justify-content: space-around;
        box-sizing: border-box;
        flex-wrap: wrap;
        align-content: space-around;
        padding: 0 0.16rem;
        margin: 0.5rem 0.31rem 0;
        width: 6.85rem;
        /* height: 2.6rem;  */
      }
      .btnBox span {
        box-sizing: border-box;
        display: inline-block;
        width: 1.5rem;
        height: 0.5rem;
        border: solid 0.02rem #cccccc;
        color: #999999;
        font-size: 0.22rem;
        line-height: 0.5rem;
        letter-spacing: 0.03rem;
        text-align: center;
        margin-bottom: 0.2rem;
      }
      .modalBox-price .btnBox span:nth-of-type(12 + n) {
        margin-bottom: 0;
        background-color: pink;
      }
      .btnBox .itemempty {
        display: inline-block;
        width: 1.5rem;
        height: 0;
        border: solid 0.02rem transparent;
      }
      .btnBox .active {
        font-size: 0.22rem;
        font-weight: bold;
        font-stretch: normal;
        line-height: 0.5rem;
        letter-spacing: 0.03rem;
        color: #1da7e8;
        background-color: #bbe4f8;
        border: solid 0.02rem #1da7e8;
      }
      .searchBtn {
        text-align: center;
        margin: 0.6rem 0 0.31rem;
      }
      .searchBtn button {
        display: inline-block;
        width: 4.4rem;
        height: 0.78rem;
        margin: 0 auto;
        background-color: #1da7e8;
        border-radius: 0.1rem;
        font-size: 0.28rem;
        font-stretch: normal;
        line-height: 0.36rem;
        color: #ffffff;
        outline: none;
        border: 0;
      }
    </style>
  </head>
  <body>
    <div class="header">
      <div class="titleBox">
        <div class="titleBox-l">建房图库</div>
        <div class="titleBox-r">
          <img src="./img/share.png" alt="" />
        </div>
      </div>
      <div class="searchBox">
        <div class="searchBox-left">
          <i>杭州</i>
          <i class="iconfont icon-caretbottom"></i>
        </div>

        <input type="text" placeholder="搜索你附近的施工队获取最低报价" />
        <img src="./img/search.png" alt="" />
      </div>
      <div class="focusBox">
        <img src="./img/focus.png" alt="" />
      </div>
      <div class="detailBox-top">
        <div onclick="show('cost')">
          <img src="./img/tubiao.png" alt="" />
          <span>造价</span>
        </div>
        <div>
          <img src="./img/tubiao.png" alt="" />
          <span>造价</span>
        </div>
        <div>
          <img src="./img/tubiao.png" alt="" />
          <span>造价</span>
        </div>
        <div>
          <img src="./img/tubiao.png" alt="" />
          <span>造价</span>
        </div>
      </div>
    </div>
    <div class="main">
      <div class="detailBox">
        <div class="detailBox-body">
          <div class="detailBox-body-item">
            <div>
                <img src="./img/detailBg.png" alt="" />
            </div>
            <h2>河南安阳张家欧式别墅</h2>
            <div>
              <span>建筑面积 627.0m²</span>
              <span>图纸编号 947</span>
            </div>
            <p>土建造价104.0万</p>
          </div>
          <div class="detailBox-body-item">
              <div>
                  <img src="./img/detailBg.png" alt="" />
              </div>
            <h2>河南安阳张家欧式别墅</h2>
            <div>
              <span>建筑面积 627.0m²</span>
              <span>图纸编号 947</span>
            </div>
            <p>土建造价104.0万</p>
          </div>
          <div class="detailBox-body-item">
            <img src="./img/detailBg.png" alt="" />
            <h2>河南安阳张家欧式别墅</h2>
            <div>
              <span>建筑面积 627.0m²</span>
              <span>图纸编号 947</span>
            </div>
            <p>土建造价104.0万</p>
          </div>
          <div class="detailBox-body-item">
            <img src="./img/detailBg.png" alt="" />
            <h2>河南安阳张家欧式别墅</h2>
            <div>
              <span>建筑面积 627.0m²</span>
              <span>图纸编号 947</span>
            </div>
            <p>土建造价104.0万</p>
          </div>
          <div class="detailBox-body-item">
            <img src="./img/detailBg.png" alt="" />
            <h2>河南安阳张家欧式别墅</h2>
            <div>
              <span>建筑面积 627.0m²</span>
              <span>图纸编号 947</span>
            </div>
            <p>土建造价104.0万</p>
          </div>
          <div class="detailBox-body-item">
            <img src="./img/detailBg.png" alt="" />
            <h2>河南安阳张家欧式别墅</h2>
            <div>
              <span>建筑面积 627.0m²</span>
              <span>图纸编号 947</span>
            </div>
            <p>土建造价104.0万</p>
          </div>
          <div class="detailBox-body-item">
            <img src="./img/detailBg.png" alt="" />
            <h2>河南安阳张家欧式别墅</h2>
            <div>
              <span>建筑面积 627.0m²</span>
              <span>图纸编号 947</span>
            </div>
            <p>土建造价104.0万</p>
          </div>
          <div class="detailBox-body-item">
            <img src="./img/detailBg.png" alt="" />
            <h2>河南安阳张家欧式别墅</h2>
            <div>
              <span>建筑面积 627.0m²</span>
              <span>图纸编号 947</span>
            </div>
            <p>土建造价104.0万</p>
          </div>
          <div class="detailBox-body-item">
            <img src="./img/detailBg.png" alt="" />
            <h2>河南安阳张家欧式别墅</h2>
            <div>
              <span>建筑面积 627.0m²</span>
              <span>图纸编号 947</span>
            </div>
            <p>土建造价104.0万</p>
          </div>
          <div class="detailBox-body-item">
            <img src="./img/detailBg.png" alt="" />
            <h2>河南安阳张家欧式别墅</h2>
            <div>
              <span>建筑面积 627.0m²</span>
              <span>图纸编号 947</span>
            </div>
            <p>土建造价104.0万</p>
          </div>
        </div>
      </div>
    </div>
    <!-- 搜索区域 -->
    <div class="modalBox-price" id="cost">
      <div class="search">
        <div class="cityOrientation ">
          <div class="cityOrientation-word">杭州</div>
          <i class="iconfont icon-caretbottom"></i>
        </div>
        <div class="rightSearchBox">
          <div class="searchImg">
            <img src="./img/search.png" alt="" />
          </div>
          <input type="text" placeholder="搜索你附近的施工队获取最低报价" />
        </div>
      </div>
      <div class="btnBox">
        <span class="active">全部</span>
        <span>10万以下</span>
        <span>10万以下</span>
        <span>10万以下</span>
        <span>10万以下</span>
        <span>10万以下</span>
        <span>10万以下</span>
        <span>10万以下</span>
        <span>10万以下</span>
        <span>10万以下</span>
        <span>10万以下</span>
        <span>10万以下</span>
        <span>10万以下</span>
        <span>10万以下</span>
        <span>10万以下</span>
        <span class="itemempty"></span>
      </div>
      <div class="searchBtn">
        <button>
          确定
        </button>
      </div>
    </div>
    <script src="./js/public.js"></script>
    <script>
      function show(val) {
        console.log(val)
        document
          .querySelector('.modalBox-price')
          .setAttribute('display', 'block')
      }
    </script>
  </body>
</html>
